<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default  {
  name:  'App',
    metaInfo() {
        return {
            title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
            titleTemplate: title => {
                return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
            }
        }
    },
  created(){
    setTimeout(()=>{
      window.L2Dwidget.init({
        pluginRootPath: 'live2dw/' ,
        pluginJsPath: 'lib/',
        pluginModelPath: 'live2d-widget-model-haru_2/assets/',//中间这个haru_2就是你的老婆,想换个老婆,换这个就tagMode: false,
      debug: false,
        model: { jsonPath: '/live2dw/live2d-widget-model-haru_2/assets/haru02.model.json'},
      display: { position: 'left',width:100,height:200},//调整大小,和位置
      mobile: { show:true },//要不要盯着你的鼠标看
      log:false,
    })
    },300)
  }
}
</script>
